package com.bole.dao;

import com.bole.pojo.TbRoleDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author yakamaxi
 * @version 1.0
 * @date 2020/8/12 13:56
 */
@Transactional
public interface RoleDao extends JpaRepository<TbRoleDo,Long> {
    @Query("from TbRoleDo where id = ?1")
    TbRoleDo findTbRoleDoById(Long id);

}
